package com.sojson.util.security.springsecurity;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

import com.sojson.util.encrypt.oneway.imparity.bcrypt.BCryptUtil;

/**
 * SpringSecurity基础配置
 * 
 * @author liu
 * @date 2021-12-01
 */
@Configuration
public class SecurityBaseHandlerConfig {

    /**
     * 密码编辑器(强散列哈希加密实现)
     */
    @Bean
    public BCryptPasswordEncoder bCryptPasswordEncoder() {
        return BCryptUtil.getBCrypt();
    }

}